FROM {{ namespace }}/{{ infra_image_prefix }}base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}

{% block certmonger_header %}{% endblock %}

{% import "macros.j2" as macros with context %}

{% if base_package_type == 'rpm' %}
    {% set certmonger_packages = [
            'certmonger',
    ] %}
{% elif base_package_type == 'deb' %}
    {% set certmonger_packages = [
            'certmonger'
    ] %}
{% endif %}

{{ macros.install_packages(certmonger_packages | customizable("packages")) }}

{% block certmonger_footer %}{% endblock %}
{% block footer %}{% endblock %}
